/*
 * @Description: 通知管理
 * @Author: hanbenpao(admin@qianghan.xyz)
 * @Date: 2021-09-26 18:22:21
 * @LastEditTime: 2021-09-27 16:35:24
 */
import axios from "@/utils/axios"

/**
 * @description: 列表
 */
export const messageListApi = data =>
  axios.request({
    url: "/messageList",
    method: "get",
    params: data
  })

/**
 * @description: 添加
 */
export const messageAddApi = data =>
  axios.request({
    url: "/addMessage",
    method: "post",
    data
  })

/**
 * @description: 修改
 */
export const messageUpdateApi = data =>
  axios.request({
    url: "/updateMessage",
    method: "put",
    data
  })

/**
 * @description: 删除
 */
export const messageDelApi = data =>
  axios.request({
    url: "/delMessage",
    method: "delete",
    params: data
  })
